

const { Controller } = require('ee-core');
const Services = require('ee-core/services');


class SerialPortController extends Controller {
  constructor(ctx) {
    super(ctx);
  }


  onMessage(callback) {
    const result1 = Services.get('serialport.service');
    Log.info('service result1:', result1);

    // Services.get('framework').test('electron');
  }
  off(callback) {
   

  }


  sendData(data: string) {
   
  }

}